#!/bin/bash 

# Paths
HFS=/usr/local/hfs12.5.533
HOU_LIBS=/usr/local/houdini_libs
HOU_LIC=/usr/local/houdini_lics
DEXEN=/usr/local/dexen
RADIANCE=/usr/local/radiance-4.2.a-Linux
EP=/usr/local/EnergyPlus-7-2-0

# Set environment variables
export RAYPATH=.:$RADIANCE/lib
export PYTHONPATH=$DEXEN:$DEXEN/lib:$HOU_LIBS/python_libs:$PYTHONPATH
export PATH=/usr/local/radiance-4.2.a-Linux/bin:$PATH
export PATH=$EP/bin:$PATH
export PATH=$HFS/bin:$PATH
export HOUDINI_OTLSCAN_PATH=$HOU_LIBS/otls:\&:$HFS/houdini/otls

# Houdini setup
cd $HFS
source houdini_setup
cd $HOU_LIC
python houdini_grab_lic.py

# Start dexen node using hython
echo "STARTING DEXEN HYTHON MASTERS DAEMON"
cd $DEXEN/scripts
hython dexen-node.py -m 10 -s 0

